package com.itqf.ipmsys.service.impl;

import com.itqf.ipmsys.entity.Repair;
import com.itqf.ipmsys.mapper.RepairMapper;
import com.itqf.ipmsys.service.RepairService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 维修表 服务实现类
 * </p>
 *
 * @author corn
 * @since 2021-10-10
 */
@Service
public class RepairServiceImpl extends ServiceImpl<RepairMapper, Repair> implements RepairService {

    @Autowired
    private RepairMapper repairMapper;
    /**
     * 查询维修总次数
     *
     * @return
     */
    @Override
    public Integer findRepairs() {
        Integer count = repairMapper.selectCount(null);
        return count;
    }
}
